﻿using System;
using System.IO;

namespace ShpMerger
{
    public class ExtendBinaryWriter : BinaryWriter
    {
        public ExtendBinaryWriter(Stream TheClass)
            : base(TheClass)
        {
            ;
        }

        public void WriteUsingBigEndian(int value)
        {
            byte[] TempBytes = System.BitConverter.GetBytes(value);
            Array.Reverse(TempBytes);
            this.Write(TempBytes, 0, TempBytes.Length);
        }
    }
}
